<?php
#延时续费套餐
use Biz\model\brand\BrandOrder;
use Biz\service\brandPack\RenewPackageService;

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

$dsn = $argv[1] ?? null;

if (!$dsn) {
    echo "dsn error!!!" . PHP_EOL;
    exit;
}

$orderInfo = BrandOrder::getOrder($dsn);

$ret = RenewPackageService::effectBrandRenewPackage($orderInfo['brand_id']);

var_dump($ret);